//
//  OPHUploadRequestExecute.h
//  AtWork2
//
//  Created by lingen on 16/3/31.
//  Copyright © 2016年 Foreverht. All rights reserved.
//

#import <Foundation/Foundation.h>

@class OPHResponse;
@class OPHUploadRequest;

@interface OPHUploadRequestExecute : NSObject


@property (nonatomic,strong) OPHUploadRequest* uploadRequest;

/**
 *  progress回调
 */
@property (nonatomic,copy) void(^progressBlock)(float progress);

/**
 *  完成回调
 */
@property (nonatomic,copy) void(^completeBlock)(OPHResponse* response);

/**
 *  开始上传
 */
-(NSURLSessionUploadTask*)startUpload;

/**
 *  取消上传
 */
-(void)cancelUpload;

/*
 * 中断上传
 */
-(BOOL)pauseUpload;

/*
 * 重启上传
 */
-(BOOL)resumeUpload;

@end
